x86/mem_sharing: fix uninitialized 'preempted' variable
authorTamas K Lengyel <tamas@tklengyel.com>
Thu, 21 Jan 2021 15:20:27 +0000 (16:20 +0100)
committerJan Beulich <jbeulich@suse.com>
Thu, 21 Jan 2021 15:20:27 +0000 (16:20 +0100)
commit9028fd493a69b1e216239542d986240fa1ea7167
tree35b4c3dd5d22359b860def21ba415dcdd252b2ad
parent7f99c05ded1999e9cf85a9d1f3586dfa45daa531
x86/mem_sharing: fix uninitialized 'preempted' variable

UBSAN catches an uninitialized use of the 'preempted' variable in
fork_hap_allocation when there is no preemption.

Fixes: 41548c5472a ("mem_sharing: VM forking")
Signed-off-by: Tamas K Lengyel <tamas@tklengyel.com>
Acked-by: Andrew Cooper <andrew.cooper3@citrix.com>
master commit: cb34a2fa162184b150d48a3b6f385bacbec22ce7
master date: 2021-01-18 17:50:11 +0000
xen/arch/x86/mm/mem_sharing.c